//
//  CJMultipleVIew.swift
//  CJPack
//
//  Created by 陈警卫 on 2023-06-02.
//

import UIKit
import Foundation

class CJTableView: UITableView {
    
}

class CJCollectionView: UICollectionView {
    var type: Int = -1
}


class CJMultGestTableView: UITableView, UIGestureRecognizerDelegate {
    
    func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
        if let view = otherGestureRecognizer.view as? CJCollectionView {
            if view.type == 0 {
                return false
            }
        }
        return true
    }
}

class CJMultGestCollectionView: UICollectionView, UIGestureRecognizerDelegate {
    
    func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
        return true
    }
}
